#include"Ping.h"
namespace Cli::ping{
    void fun(std::vector<std::string> args) {
        auto execobj = nodeHandler.getClientTaskExecutor(TaskFlag::ping);
        auto sock = nodeHandler.getMasterConnect();
        execobj->clientAction(sock);
        execobj->clientAction(sock);
        execobj->clientAction(sock);
        execobj->clientAction(sock);
        nodeHandler.getClientTaskExecutor(TaskFlag::closetask)->clientAction(sock);
    }
}
MAKE_CLI_EXECUTOR(Ping, "ping", "ping~pong~", {
    Cli::ping::fun(args);
})